package top.laoshuzi.android.iotcamera.main.ui

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.launcher.ARouter
import kotlinx.android.synthetic.main.activity_main.*
import top.laoshuzi.android.iotcamera.R
import top.laoshuzi.android.iotcamera.camera.CameraConstants

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        action_test.setOnClickListener {
            ARouter.getInstance()
                .build(CameraConstants.CAMERA_ACTIVIY)
                .navigation()
        }
    }
}
